﻿using System;
using RootMotion.FinalIK;
using UnityEngine;

namespace RootMotion.Demos
{
	// Token: 0x0200009C RID: 156
	public class EffectorOffset : OffsetModifier
	{
		// Token: 0x06000552 RID: 1362 RVA: 0x00034680 File Offset: 0x00032880
		public override void OnModifyOffset()
		{
			this.ik.solver.leftHandEffector.maintainRelativePositionWeight = this.handsMaintainRelativePositionWeight;
			this.ik.solver.rightHandEffector.maintainRelativePositionWeight = this.handsMaintainRelativePositionWeight;
			this.ik.solver.bodyEffector.positionOffset += base.transform.rotation * this.bodyOffset;
			this.ik.solver.leftShoulderEffector.positionOffset += base.transform.rotation * this.leftShoulderOffset;
			this.ik.solver.rightShoulderEffector.positionOffset += base.transform.rotation * this.rightShoulderOffset;
			this.ik.solver.leftThighEffector.positionOffset += base.transform.rotation * this.leftThighOffset;
			this.ik.solver.rightThighEffector.positionOffset += base.transform.rotation * this.rightThighOffset;
			this.ik.solver.leftHandEffector.positionOffset += base.transform.rotation * this.leftHandOffset;
			this.ik.solver.rightHandEffector.positionOffset += base.transform.rotation * this.rightHandOffset;
			this.ik.solver.leftFootEffector.positionOffset += base.transform.rotation * this.leftFootOffset;
			this.ik.solver.rightFootEffector.positionOffset += base.transform.rotation * this.rightFootOffset;
		}

		// Token: 0x04000420 RID: 1056
		[Range(0f, 1f)]
		public float handsMaintainRelativePositionWeight;

		// Token: 0x04000421 RID: 1057
		public Vector3 bodyOffset;

		// Token: 0x04000422 RID: 1058
		public Vector3 leftShoulderOffset;

		// Token: 0x04000423 RID: 1059
		public Vector3 rightShoulderOffset;

		// Token: 0x04000424 RID: 1060
		public Vector3 leftThighOffset;

		// Token: 0x04000425 RID: 1061
		public Vector3 rightThighOffset;

		// Token: 0x04000426 RID: 1062
		public Vector3 leftHandOffset;

		// Token: 0x04000427 RID: 1063
		public Vector3 rightHandOffset;

		// Token: 0x04000428 RID: 1064
		public Vector3 leftFootOffset;

		// Token: 0x04000429 RID: 1065
		public Vector3 rightFootOffset;
	}
}
